package com.ddwl.message.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.message.mapper.ShopMessageInfoMapper;
import com.ddwl.message.model.ShopMessageInfo;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Repository
public class ShopMessageInfoDao extends TkDao<ShopMessageInfoMapper, ShopMessageInfo>{
    @Resource
    private ShopMessageInfoMapper shopMessageInfoMapper;

    public List<ShopMessageInfo> getAll() {
        Example example = new Example(ShopMessageInfo.class);
        return shopMessageInfoMapper.selectByExample(example);
    }

    public void changeId(Map<String, String> map) {
        shopMessageInfoMapper.changeId(map);
    }
}